﻿/*
The MIT License

Copyright (c) 2009 Gil Beyruth

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

*/

package com.firstpixel.multiuser
{
	import flash.display.Sprite;

	public class UserObj extends Sprite
	{
		private var _username:String;
		private var _statustag:String="spectator"; // spectator, player1, player2
		private var _room:String="lobby"; //lobby, stadium1, stadium2 ... 
		private var _ip:String;
		private var _type:String="guest"; //guest,player
		private var _talking:Boolean=false; // false, true
		private var _uid:int;
		private var _ignore:Boolean = false;
		
		public function UserObj()
		{
			super();
		}
		public function set username(value:String):void{
			_username = value 
		}
		public function get username():String{
			return _username;
		}
		public function set statustag(value:String):void{
			_statustag = value 
		}
		public function get statustag():String{
			return _statustag;
		}		
		public function set room(value:String):void{
			_room = value 
		}
		public function get room():String{
			return _room;
		}		
		public function set ip(value:String):void{
			_ip = value 
		}
		public function get ip():String{
			return _ip;
		}
		public function set type(value:String):void{
			_type = value 
		}
		public function get type():String{
			return _type;
		}
		public function set talking(value:Boolean):void{
			_talking = value 
		}
		public function get talking():Boolean{
			return _talking;
		}
		public function set uid(value:int):void{
			_uid = value 
		}
		public function get uid():int{
			return _uid;
		}
		public function set ignore(value:Boolean):void{
			_ignore = value 
		}
		public function get ignore():Boolean{
			return _ignore;
		}
		
	}
}